package com.crscd.jdbc.senior.dao;

import com.crscd.jdbc.advanced.pojo.Employee;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @description:
 * @author: liuziyang
 * @since: 10/23/25 11:33 AM
 * @modifiedBy:
 * @version: 1.0
 */
public interface EmployeeDao {
  /**
   * Select all list.
   *
   * @return the list
   */
  List<Employee> selectAll();

  /**
   * Select by emp id employee.
   *
   * @param empId the emp id
   * @return the employee
   */
  Employee selectByEmpId(Integer empId);

  /**
   * Insert int.
   *
   * @param employee the employee
   * @return the int
   */
  int insert(Employee employee);

  /**
   * Update int.
   *
   * @param employee the employee
   * @return the int
   */
  int update(Employee employee);

  /**
   * Delete by emp id int.
   *
   * @param empId the emp id
   * @return the int
   */
  int deleteByEmpId(Integer empId);
}
